package entity

import (
	"core/datetime"
)

type CommDeal struct {
	Id int64 `json:"id,string"                         gorm:"column:id;primaryKey;autoIncrement:false;comment:主键;"`

	Name string `json:"name"      validate:"required,max=50"   gorm:"column:name;size:50;DEFAULT:'';not null;comment:名称;"`

	EndPoint string `json:"endPoint"      validate:"required,max=50"   gorm:"column:end_point;size:50;DEFAULT:'';not null;comment:通讯地址;"`

	Memo string `json:"memo"                             gorm:"column:memo;size:2000;DEFAULT:'';not null;comment:备注;"`

	Deleted datetime.DeletedAt `json:"deleted"                          gorm:"column:deleted;DEFAULT:0;type:tinyint(1);not null;comment:删除标志;"`
}

func (p *CommDeal) TableName() string {
	return "CommDeal"
}
